home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_23588.txt < prev    next >
Text File  |  1990-10-02  |  6KB  |  252 lines

  1. -- card: 23588 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 3864
  3. -- flags: 0000
  4. -- background id: 2766
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   send cardOpened to background
  9. end openCard
  10.  
  11. on move
  12.   global direction,trollDead,chase,blasting,causeOfDeath
  13.   if direction = "east" or direction = "up" or direction = "rear" then
  14.     go card id 3186
  15.     exit move
  16.   end if
  17.   if direction = "west" or direction = "down" then
  18.     put "troll1" into causeOfDeath
  19.     go to card id 3409
  20.     exit move
  21.   end if
  22.   pass move
  23. end move
  24.  
  25.  
  26. on closeCard
  27.   set the cursor to 4
  28.   put "" into field 3
  29. end closeCard
  30.  
  31. on take
  32.   global object,carried
  33.   -- remember to update carried if you do not pass take
  34.   pass take
  35. end take
  36.  
  37. on drop
  38.   global object,dropRoom,carried
  39.   -- remember to update carried if you do not pass take
  40.   pass drop
  41. end drop
  42.  
  43. on use
  44.   global object,carried,oldRoom,newRoom,useFlag,trollDead,cardID
  45.   put false into useFlag
  46.   put last word of object into obj
  47.   delete first char of obj
  48.   delete last char of obj
  49.   if obj="knife" then
  50.     put "Slash!  Hack!  Slice!" into field 3
  51.     put true into trollDead
  52.     put "23588" into oldRoom
  53.     put "24153" into newRoom
  54.     send roomChange to background
  55.     put 24153 into cardID
  56.     go to card id 24153
  57.     show card button id 18 of card id 7465
  58.     put "You slay the troll with your knife. What a mess." into field 3
  59.     exit use
  60.   end if
  61.   -- update carried if use results in loss of object
  62.   pass use
  63. end use
  64.  
  65.  
  66.  
  67.  
  68.  
  69. -- part 16 (button)
  70. -- low flags: 80
  71. -- high flags: 2000
  72. -- rect: left=5 top=225 right=261 bottom=39
  73. -- title width / last selected line: 0
  74. -- icon id / first selected line: 9301 / 9301
  75. -- text alignment: 1
  76. -- font id: 0
  77. -- text size: 12
  78. -- style flags: 0
  79. -- line height: 16
  80. -- part name: knife
  81. ----- HyperTalk script -----
  82. on mouseUp
  83.   global takeFlag,examFlag,object,cardID
  84.   put the name of the target into object
  85.   if takeFlag = true
  86.   then send take to card id cardID
  87. else put "a knife" into field 3
  88. put false into examFlag
  89. end mouseUp
  90.  
  91.  
  92.  
  93. -- part 17 (button)
  94. -- low flags: 80
  95. -- high flags: 2000
  96. -- rect: left=40 top=226 right=262 bottom=74
  97. -- title width / last selected line: 0
  98. -- icon id / first selected line: 1015 / 1015
  99. -- text alignment: 1
  100. -- font id: 0
  101. -- text size: 12
  102. -- style flags: 0
  103. -- line height: 16
  104. -- part name: nodule
  105. ----- HyperTalk script -----
  106. on mouseUp
  107.   global takeFlag,examFlag,object,cardID
  108.   put the name of the target into object
  109.   if takeFlag = true
  110.   then send take to card id cardID
  111. else put "a silicon sphere" into field 3
  112. put false into examFlag
  113. end mouseUp
  114.  
  115.  
  116.  
  117. -- part 18 (button)
  118. -- low flags: 80
  119. -- high flags: 2000
  120. -- rect: left=108 top=226 right=262 bottom=142
  121. -- title width / last selected line: 0
  122. -- icon id / first selected line: 14953 / 14953
  123. -- text alignment: 1
  124. -- font id: 0
  125. -- text size: 12
  126. -- style flags: 0
  127. -- line height: 16
  128. -- part name: ladder
  129. ----- HyperTalk script -----
  130. on mouseUp
  131.   global takeFlag,examFlag,object,cardID
  132.   put the name of the target into object
  133.   if takeFlag = true
  134.   then send take to card id cardID
  135. else put "a rope ladder" into field 3
  136. put false into examFlag
  137. end mouseUp
  138.  
  139.  
  140.  
  141. -- part 19 (button)
  142. -- low flags: 80
  143. -- high flags: 2000
  144. -- rect: left=176 top=226 right=262 bottom=210
  145. -- title width / last selected line: 0
  146. -- icon id / first selected line: 1019 / 1019
  147. -- text alignment: 1
  148. -- font id: 0
  149. -- text size: 12
  150. -- style flags: 0
  151. -- line height: 16
  152. -- part name: bomb
  153. ----- HyperTalk script -----
  154. on mouseUp
  155.   global takeFlag,examFlag,object,cardID
  156.   put the name of the target into object
  157.   if takeFlag = true
  158.   then send take to card id cardID
  159. else put "a time bomb" into field 3
  160. put false into examFlag
  161. end mouseUp
  162.  
  163.  
  164.  
  165. -- part 20 (button)
  166. -- low flags: 80
  167. -- high flags: 2000
  168. -- rect: left=74 top=226 right=262 bottom=108
  169. -- title width / last selected line: 0
  170. -- icon id / first selected line: 24317 / 24317
  171. -- text alignment: 1
  172. -- font id: 0
  173. -- text size: 12
  174. -- style flags: 0
  175. -- line height: 16
  176. -- part name: key
  177. ----- HyperTalk script -----
  178. on mouseUp
  179.   global takeFlag,examFlag,object,cardID
  180.   put the name of the target into object
  181.   if takeFlag = true
  182.   then send take to card id cardID
  183. else put "a key" into field 3
  184. put false into examFlag
  185. end mouseUp
  186.  
  187.  
  188.  
  189. -- part 21 (button)
  190. -- low flags: 80
  191. -- high flags: 2000
  192. -- rect: left=142 top=226 right=262 bottom=176
  193. -- title width / last selected line: 0
  194. -- icon id / first selected line: 7012 / 7012
  195. -- text alignment: 1
  196. -- font id: 0
  197. -- text size: 12
  198. -- style flags: 0
  199. -- line height: 16
  200. -- part name: gem
  201. ----- HyperTalk script -----
  202. on mouseUp
  203.   global takeFlag,examFlag,object,cardID
  204.   put the name of the target into object
  205.   if takeFlag = true
  206.   then send take to card id cardID
  207. else put "a glowing gem" into field 3
  208. put false into examFlag
  209. end mouseUp
  210.  
  211.  
  212.  
  213. -- part 36 (button)
  214. -- low flags: 00
  215. -- high flags: 0000
  216. -- rect: left=51 top=60 right=219 bottom=182
  217. -- title width / last selected line: 0
  218. -- icon id / first selected line: 0 / 0
  219. -- text alignment: 1
  220. -- font id: 0
  221. -- text size: 12
  222. -- style flags: 0
  223. -- line height: 16
  224. -- part name: 
  225. ----- HyperTalk script -----
  226. on mouseUp
  227.   global examFlag,takeFlag,direction,cardID,causeOfDeath
  228.   if takeFlag then
  229.     put false into takeFlag
  230.     put "troll2" into causeOfDeath
  231.     go to card id 3409
  232.   else
  233.     put "A mean, ugly, Troll." into field 3
  234.     put false into examFlag
  235.   end if
  236. end mouseUp
  237.  
  238.  
  239.  
  240. -- part contents for background part 25
  241. ----- text -----
  242. Long Stairway
  243. (looking west)
  244.  
  245. -- part contents for background part 24
  246. ----- text -----
  247. You are on a stone stairway leading downward to the west and upward to the east.  A cool, dank breeze is whistling up the stairs.
  248. A large, ugly troll blocks your path, flexing his razor sharp claws.  The troll snarls, "Go back, or I shall kill you, puny human!"
  249.  
  250. -- part contents for background part 36
  251. ----- text -----
  252. 1